package lancs.mobilemedia.core.ui.controller;

import java.util.Hashtable;

import lancs.mobilemedia.core.ui.controller.commands.DestroyApp;
import lancs.mobilemedia.core.ui.controller.commands.GoToPreviousScreen;

public class BaseControllerMapper implements ControllerMapper {

	protected Hashtable commands;

	public BaseControllerMapper() {
		commands = new Hashtable();
		commands.put("Exit", new DestroyApp());
		commands.put("Back", new GoToPreviousScreen());
		commands.put("Cancel", new GoToPreviousScreen());
		init();
	}

	public void init() {
	}

	public ControllerCommand getCommand(String label) {
		return (ControllerCommand) commands.get(label);
	}

}
